<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf" %>
<script type="text/javascript" src="${ctx}/js/mould/pAfterCheck/pAfterCheck_edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
label[class^="btn btn-default"]{
	margin-top: -4px;
}
</style>
<script type="text/javascript" src="${ctx}/js/jedate/jedate.js"></script>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/pAfterCheck/pAfterCheck_editEntity.shtml">
		<input type="hidden" class="form-control checkacc" value="${after.id}"
			name="pAfterCheckFormMap.id" id="id">
		<section class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label">检查日期</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh" readonly="readonly"
							name="pAfterCheckFormMap.checkDate" id="checkDate" value="${after.checkDate}"/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">模架号</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh"
							name="pAfterCheckFormMap.shelfNo" id="shelfNo" value="${after.shelfNo}"/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">模具编号</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh" readonly="readonly"
							id="mold_encode" value="${after.mold_encode}"/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">类别</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh"
							name="pAfterCheckFormMap.sortName" id="shelfNo" value="${after.sortName}"/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">备模班组</label>
					<div class="col-sm-9">
						<select class="form-control" name="pAfterCheckFormMap.pSchedule">
							<option value="1" <c:if test="${after.pSchedule eq 1}"> SELECTED</c:if>>甲班</option>
							<option value="2" <c:if test="${after.pSchedule eq 2}"> SELECTED</c:if>>乙班</option>
						</select>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">备模人员1</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh"
							name="pAfterCheckFormMap.pStaff1" id="pStaff1" value="${after.pStaff1}"/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">备模人员2</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh"
							name="pAfterCheckFormMap.pStaff2" id="pStaff2" value="${after.pStaff2}"/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">备模人员3</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh"
							name="pAfterCheckFormMap.pStaff3" id="pStaff3" value="${after.pStaff3}"/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">开始备模时间</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh" readonly
							name="pAfterCheckFormMap.pBeginTime" id="pBeginTime" value="${after.pBeginTime}"/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">结束备模时间</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh" readonly
							name="pAfterCheckFormMap.pEndTime" id="pEndTime" value="${after.pEndTime}"/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<!-- 开始处理不合格项目 -->
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="panel panel-default">
				<div class="panel-body">
					<table class="table table-bordered">
						<thead>
							<tr>
								<th style="text-align: center;width:176px;">类别</th>
								<th style="text-align: center;width:176px;">检查项目</th>
								<th style="text-align: center;width:176px;">检查标准</th>
								<th style="text-align: center;width:135px;">检查结果</th>
								<th style="text-align: center;width:136px;">不合格处理</th>
								<th style="text-align: center;width:136px;">不合格处理时间</th>
								<th style="text-align: center;width:136px;">维修员</th>
								<th style="text-align: center;width:136px;">维修结果</th>
								<th style="text-align: center;width:136px;">备注</th>
							</tr>
						</thead>
						<tbody id="tbl">
							<c:forEach var="h" items="${handle }">
									<tr>
										<td>
											<div class="input-group">
												<input type="text" class="form-control" readonly="readonly"
													 value="${h.categoryId==1?'固模':'移模'}"/>
											</div>
										</td>
										<td>
											<div class="input-group">
												<input type="text" class="form-control" readonly="readonly"
													 value="${h.itemName}">
											</div>
										</td>
										<td>
											<div class="input-group">
												<input type="hidden" class="form-control" readonly="readonly"
													name="standardId_1" value="${h.standardId}">
												<input type="text" class="form-control" readonly="readonly"
													 value="${h.standardName}">
											</div>
										</td>
									<td>
										<div class="input-group">
											<select class="form-control" name="checkResult_1">
												<option value="1" <c:if test="${h.checkResult eq 1}"> SELECTED</c:if>>合格</option>
												<option value="2" <c:if test="${h.checkResult eq 2}"> SELECTED</c:if>>不合格</option>
											</select>
										</div>
									</td>
									<td>
										<div class="input-group">
											<input type="text" class="form-control"
												name="handle_1" value="${h.handle}">
										</div>
									</td>
									<td>
										<div class="input-group">
											<input type="datetime-local" class="form-control" id="handleTime"
												name="handleTime_1" value="${h.handleTime }">
										</div>
									</td>
									<td>
										<div class="input-group">
											<select  class="form-control" name="repairPeopleId_1">
												<option value="11">请选择</option>
												<c:forEach var="u" items="${users}" >
													<c:if test="${u.position_id==46 && u.deletestatus==0}">
														<option value="${u.id}" ${u.id==h.repairPeopleId?'selected':'' }>${u.userName }</option>	
													</c:if>
												</c:forEach>
											</select>
										</div>
									</td>
									<td>
										<div class="input-group">
											<input type="text" class="form-control"
												name="repairResult_1" value="${h.repairResult}">
										</div>
									</td>
									<td>
										<div class="input-group">
											<input type="text" class="form-control"
												name="remark_1" value="${h.remark}">
										</div>
									</td>
								</tr>
								<input type="hidden" class="form-control"
									name="finishRepair_1" value="${h.finishRepair}"/>
								<input type="hidden" class="form-control"
									name="finishTime_1" value="${h.finishTime}"/>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
			<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> 
	</section>
	</form>
	<script type="text/javascript">
		jeDate({
			dateCell : "#pBeginTime",
			format : "YYYY-MM-DD hh:mm:ss",
			isinitVal : false,
			isTime : true,
			isClear : false,
			minDate : "2014-09-19 00:00:00"
		});
		jeDate({
			dateCell : "#pEndTime",
			format : "YYYY-MM-DD hh:mm:ss",
			isinitVal : false,
			isTime : true,
			isClear : false,
			minDate : "2014-09-19 00:00:00"
		});
	</script>
</body>
</html>